import java.util.Comparator;

public class Main {

    public static void main(String[] args) {
        Integer[] array = Integers.random(100, -1000, 1000);

        CountingSort countingSort = new CountingSort(new Comparator<>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o1 - o2;
            }
        });

        countingSort.sort(array);
        Asserts.test(Integers.isAscOrder(array));
    }
}
